package com.mxpio.erp.common.technology.entity;


import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

import com.mxpioframework.jpa.annotation.Generator;
import com.mxpioframework.jpa.policy.impl.UUIDPolicy;
import com.mxpioframework.security.annotation.Dict;
import com.mxpioframework.security.entity.BaseEntity;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

@Data
@EqualsAndHashCode(callSuper=false)
@Entity
@Table(name = "MB_ERP_TECHNOLOGY_CONSUMPTION_EXP")
@Schema(description="消耗量计算公式配置")
public class ConsumptionExp extends BaseEntity {
	private static final long serialVersionUID = 1L;

	@Id
    @Column(name = "ID_", updatable = false)
    @Generator(policy = UUIDPolicy.class)
    @Schema(description = "公式主键")
    private String expId;

    @Column(name = "MATERIAL_TYPE_")
    @Schema(description = "材料类型")
    @Dict(dicCode = "ERP_TECH_MATERIAL_TYPE")
    private String materialType;

    @Column(name = "EXPRESSION_")
    @Schema(description = "表达式")
    private String expression;

    @Column(name = "MATERIAL_TYPE_NAME_")
    @Schema(description = "材料类型名称")
    private String materialTypeName;

}
